package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiU_favorite;
import cn.com.api.mapper.base.U_favoriteMapperBase;

//DAO
public interface ApiU_favoriteMapper extends U_favoriteMapperBase {

	public void deleteU_favoriteByMap(@Param("map") Map param);

	public Integer getFavoriteCount(@Param("map") Map param);
	
	public Integer checkFavorite(@Param("map") Map param);
	
	public List<Map<String, Object>> getMyFavoriteSummary(@Param("user_id") Integer user_id);
	
//	public List<ApiU_favorite> getArticleFavoriteListPage(@Param("map") Map param, @Param("page") PageInfo page);
	
	public ApiU_favorite getFavoriteByCondition(Map<String, Object> map);

}
